
package com.microsoft.schemas.office.project.server.webservices.timesheet;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for ProjectTimesheetLineQueryType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="ProjectTimesheetLineQueryType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="StatusManagerLineItems"/>
 *     &lt;enumeration value="ApprovedLineItems"/>
 *     &lt;enumeration value="AllApprovedLineItems"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "ProjectTimesheetLineQueryType")
@XmlEnum
public enum ProjectTimesheetLineQueryType {

    @XmlEnumValue("StatusManagerLineItems")
    STATUS_MANAGER_LINE_ITEMS("StatusManagerLineItems"),
    @XmlEnumValue("ApprovedLineItems")
    APPROVED_LINE_ITEMS("ApprovedLineItems"),
    @XmlEnumValue("AllApprovedLineItems")
    ALL_APPROVED_LINE_ITEMS("AllApprovedLineItems");
    private final String value;

    ProjectTimesheetLineQueryType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ProjectTimesheetLineQueryType fromValue(String v) {
        for (ProjectTimesheetLineQueryType c: ProjectTimesheetLineQueryType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
